/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.click.app.service.impl;

import com.click.app.dao.CutProcessDao;
import com.click.app.model.CutProcess;
import com.click.app.model.Employee;
import com.click.app.service.CutProcessManager;
import java.util.List;

/**
 *
 * @author ariel
 */
public class CutProcessManagerImpl extends GenericManagerImpl<CutProcess, Long> implements CutProcessManager {

    CutProcessDao cutProcessDao;

    public CutProcessManagerImpl(CutProcessDao cutProcessDao) {
        super(cutProcessDao);
        this.cutProcessDao = cutProcessDao;
    }

    public CutProcess getById(Long id){
        return this.cutProcessDao.get(id);
    }

    public List<CutProcess> findByEmployeePay(Employee employee) {
        return this.cutProcessDao.findByEmployeePay(employee);
    }

    public List<CutProcess> getCutProcesses(){
        return this.cutProcessDao.getCutProcesses();
    }

}
